package com.wjq.demo.hystrix;


/**
 * @author wjq
 * @since 2023-04-20
 */
public class HystrixTest {

    public static void main(String[] args) {
        String result = new CommandHelloWorld("Bob").observe().filter(s -> {
            System.out.println("this is filter");
            return true;
        }).map(s -> s.concat(" welcome")).toBlocking().single();
        System.out.println(result);
    }
}
